@extends('common.en_base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
    <script language="javascript">
        $(function(){
            $('#owl-demo').owlCarousel({
                items: 1,
                navigation: true,
                navigationText: ["上一个","下一个"],
                autoPlay: true,
                stopOnHover: true
            }).hover(function(){
                $('.owl-buttons').show();
            }, function(){
                $('.owl-buttons').hide();
            });
        });
    </script>
@endsection

@section('html-body')
    <div id="banner" class="banner">
    <div id="owl-demo" class="owl-carousel">
        @if(count($en_web_info['banner']) > 0)
            @foreach($en_web_info['banner'] as $banner)
                <a class="item"  href="#" style="background-image:url('{{$banner}}')">
                    <img src="{{$banner}}" alt="">
                </a>
            @endforeach
        @endif
    </div>
</div>
<div class="space_hx">&nbsp;</div>
<div class="i_m">
	<div class="i_name"><img src="{{asset('Assets/images/n1.png')}}" width="171" height="59" alt=""/></div>
    <ul class="i_ma clearfix">
        @if(count($applicationFieldList) > 0)
            @foreach($applicationFieldList as $applicationField)
                <li>
                    <div class="title">
                        <img src="{{$applicationField->thumb_img_url}}" alt=""/>
                        <span>{{$applicationField->name}}</span>
                    </div>
                    <div class="tu"><a href="{{route('Home.Index.enApplicationField')}}?id={{$applicationField->id}}"><img src="{{$applicationField->img_url}}" alt=""/></a></div>
                    <div class="des">{{$applicationField->desc}}</div>
                    <a href="{{route('Home.Index.enApplicationField')}}?id={{$applicationField->id}}" class="more">+查看详情</a>
                </li>
            @endforeach
        @endif
    </ul>
</div>
<div class="space_hx">&nbsp;</div>
<div class="hui_bg">
	<div class="i_m clearfix">
    	<div class="i_ml">
        	<div class="i_title">
            	<a href="#"><img src="{{asset('Assets/images/n2.jpg')}}" width="139" height="22" alt=""/></a>
                <div class="line">&nbsp;</div>
                <a href="{{route('Home.Index.enNews')}}" class="more">+MORE</a>
            </div>
            <div class="i_mb">
                @if(count($enIndexNews) > 0)
                    @foreach($enIndexNews as $enIndexNew)
            	<dl class="clearfix">
                	<dt><a href=""><img src="{{$enIndexNew->thumb_img_url}}" alt=""/></a></dt>
                    <dd>
                    	<div class="title"><a href="{{route('Home.Index.enNewsDetails')}}?news_id={{$enIndexNew->id}}&classify_id={{$enIndexNew->classify_id}}">{{$enIndexNew->title}}</a></div>
                        <div class="des">{{$enIndexNew->desc}}</div>
                        <div class="time">
                        	<a href="{{route('Home.Index.enNewsDetails')}}?news_id={{$enIndexNew->id}}&classify_id={{$enIndexNew->classify_id}}">+SEE MORE</a>
                            {{$enIndexNew->created_at}}
                        </div>
                    </dd>
                </dl>
                @endforeach
                @endif
            </div>
        </div>
        <div class="i_mr">
        	<div class="i_title">
            	<a href="#"><img src="{{asset('Assets/images/n3.jpg')}}" width="168" height="22" alt=""/></a>
                <div class="line">&nbsp;</div>
                <a href="{{route('Home.Index.enProduct')}}" class="more">+MORE</a>
            </div>
            <dl class="i_mc clearfix">
            	<dt><a href="#"><img src="{{$indexImg}}" alt=""/></a></dt>
                <dd>
                	<ul>
                        @if(count($enIndexProduct) > 0)
                            @foreach($enIndexProduct as $product)
                                <li @if($product->sort == 1)class="on" @endif>
                                    <i>&nbsp;</i>
                                    <div class="title"><a href="{{route('Home.Index.enProductDetails')}}?product_id={{$product->id}}&classify_id={{$product->classify_id}}">{{$product->name}}</a></div>
                                    <div class="des">{{$product->desc}}</div>
                                    <img src="{{$product->thumb_url}}" alt=""/>
                                </li>
                            @endforeach
                        @endif
                    </ul>
                </dd>
            </dl>
            <div class="space_hx">&nbsp;</div>
            <div class="i_title">
            	<a href="#"><img src="{{asset('Assets/images/n4.jpg')}}" width="151" height="22" alt=""/></a>
                <div class="line">&nbsp;</div>
                <a href="{{route('Home.Index.enJoin')}}" class="more">+MORE</a>
            </div>
            <div class="i_md clearfix" style="overflow: hidden; height:100px;">
                @if($enIndexJoin)
                    <?php echo html_entity_decode($enIndexJoin->content)  ?>
                @endif
            </div>
        </div>
    </div>
</div>
@endsection

